package com.education.model;

import java.io.Serializable;
import java.text.ParseException;
import java.util.Date;
import java.util.List;

import com.education.util.DateUtil;

/**
 * 视频提问(学生)
 * 
 * @author  雷紫辉 2017/8/8 重构
 *
 */
public class StudentQuizModel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 提问表编号
     */
    private int quizId;

    /**
     * 提问日期
     */
    private Date quizDate;

    /**
     * 提问日期(String)
     */
    private String quizDateStr;

    /**
     * 提问内容
     */
    private String quizContent;


    /**
     * 提问所属视频
     */
    private int videoId;


    /**
     * 提问学生
     */
    private int studentId;

    /**
     * 此提问所有的回复
     */
    List<TeacherReplyModel> teacherReplyModels;
    /**
     * 删除状态
     */
    private int quizDelete;

    public int getQuizId() {
        return quizId;
    }

    public void setQuizId(int quizId) {
        this.quizId = quizId;
    }

    public Date getQuizDate() {
        return quizDate;
    }

    public void setQuizDate(Date quizDate) {
        this.quizDate = quizDate;
        this.quizDateStr=DateUtil.formatDate(quizDate,"yyyy-MM-dd");
    }

    public String getQuizDateStr() {
        return quizDateStr;
    }

    public void setQuizDateStr(String quizDateStr) throws ParseException {
        this.quizDateStr = quizDateStr;
        this.quizDate=DateUtil.formatString("quizDateStr","yyyy-MM-dd");
    }

    public String getQuizContent() {
        return quizContent;
    }

    public void setQuizContent(String quizContent) {
        this.quizContent = quizContent;
    }

    public int getVideoId() {
        return videoId;
    }

    public void setVideoId(int videoId) {
        this.videoId = videoId;
    }

    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }

    public int getQuizDelete() {
        return quizDelete;
    }

    public void setQuizDelete(int quizDelete) {
        this.quizDelete = quizDelete;
    }

    public List<TeacherReplyModel> getTeacherReplyModels() {
        return teacherReplyModels;
    }

    public void setTeacherReplyModels(List<TeacherReplyModel> teacherReplyModels) {
        this.teacherReplyModels = teacherReplyModels;
    }
}
